﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ATM
{
    public partial class main : Form
    {
        public main(string tk)
        {
            InitializeComponent();
            label1.Text = tk;
        }

        private void main_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            string sodu = label1.Text;
            chuyenkhoan f = new chuyenkhoan(sodu);
            f.Show();
            this.Hide();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            string s = label1.Text;
            vantin f = new vantin(s);
            f.Show(); this.Hide();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            ruttien f = new ruttien(label1.Text);
            f.Show();
                this.Hide();
        }

        private void button5_Click(object sender, EventArgs e)
        {
            Close();
            System.Windows.Forms.Application.Exit();
            Dispose();
            System.Windows.Forms.Application.Exit();
        }

        private void button6_Click(object sender, EventArgs e)
        {
            Doimapin f = new Doimapin(label1.Text);
            f.Show();
            this.Hide();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            guitien f = new guitien(label1.Text);
            f.Show();
            this.Hide();
        }
    }
}
